package com.selfstudy.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 自习室座位表
 * </p>
 *
 * @author author
 * @since 2025-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("seat")
@ApiModel(value="Seat对象", description="自习室座位表")
public class Seat implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "座位ID")
    @TableId(value = "seat_id", type = IdType.AUTO)
    private Long seatId;

    @ApiModelProperty(value = "楼层(如3F-A区)")
    @TableField("floor")
    private String floor;

    @ApiModelProperty(value = "座位编号")
    @TableField("seat_number")
    private String seatNumber;

    @ApiModelProperty(value = "是否有电源")
    @TableField("has_power")
    private Boolean hasPower;

    @ApiModelProperty(value = "状态")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "X坐标(地图定位)")
    @TableField("x_coord")
    private Integer xCoord;

    @ApiModelProperty(value = "Y坐标(地图定位)")
    @TableField("y_coord")
    private Integer yCoord;


}
